
# Create your models here.
from django.db import models


class AuthUser(models.Model):
    password = models.CharField(max_length=128)
    last_login = models.DateTimeField(blank=True, null=True)
    is_superuser = models.IntegerField()
    username = models.CharField(unique=True, max_length=150)
    first_name = models.CharField(max_length=150)
    last_name = models.CharField(max_length=150)
    email = models.CharField(max_length=254)
    is_staff = models.IntegerField()
    is_active = models.IntegerField()
    date_joined = models.DateTimeField()

    class Meta:
        managed = False
        db_table = 'auth_user'



class DjangoApschedulerDjangojob(models.Model):
    id = models.CharField(primary_key=True, max_length=255)
    next_run_time = models.DateTimeField(blank=True, null=True)
    job_state = models.TextField()

    class Meta:
        managed = False
        db_table = 'django_apscheduler_djangojob'


class DjangoApschedulerDjangojobexecution(models.Model):
    id = models.BigAutoField(primary_key=True)
    status = models.CharField(max_length=50)
    run_time = models.DateTimeField()
    duration = models.DecimalField(max_digits=15, decimal_places=2, blank=True, null=True)
    finished = models.DecimalField(max_digits=15, decimal_places=2, blank=True, null=True)
    exception = models.CharField(max_length=1000, blank=True, null=True)
    traceback = models.TextField(blank=True, null=True)
    job = models.ForeignKey(DjangoApschedulerDjangojob, models.DO_NOTHING)

    class Meta:
        managed = False
        db_table = 'django_apscheduler_djangojobexecution'
        unique_together = (('job', 'run_time'),)


class DjangoSession(models.Model):
    session_key = models.CharField(primary_key=True, max_length=40)
    session_data = models.TextField()
    expire_date = models.DateTimeField()

    class Meta:
        managed = False
        db_table = 'django_session'


class Liucunfenxi(models.Model):
    shijian = models.DateTimeField(primary_key=True)
    xinyonghushouciliucun = models.JSONField(blank=True, null=True)
    xinyonghuzidingyiliucun = models.JSONField(blank=True, null=True)
    huoyueyonghuliucun = models.JSONField(blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'liucunfenxi'


class Qudaoxinxi(models.Model):
    shijian = models.DateTimeField(primary_key=True)
    qudaofenxi = models.JSONField(blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'qudaoxinxi'


class Shijianxinxi(models.Model):
    shijian = models.DateTimeField(primary_key=True)
    shijianfenxi = models.JSONField(blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'shijianxinxi'


class Shiyongxingwei(models.Model):
    shijian = models.DateTimeField(primary_key=True)
    yemianfenxi = models.JSONField(blank=True, null=True)
    yemianlujing = models.JSONField(blank=True, null=True)
    shiyongxiguan = models.JSONField(blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'shiyongxingwei'




class Yonghufenxi(models.Model):
    shijian = models.DateTimeField(primary_key=True)
    yonghuqushi = models.JSONField(blank=True, null=True)
    huoyueyonghu = models.JSONField(blank=True, null=True)
    yonghuhuaxiang = models.JSONField(blank=True, null=True)
    diyufenbu = models.JSONField(blank=True, null=True)
    zhongduanfenxi = models.JSONField(blank=True, null=True)
    banbenfenxi = models.JSONField(blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'yonghufenxi'


class Yonghujiapi(models.Model):
    shijian = models.DateTimeField(primary_key=True)
    yonghuyingyong = models.JSONField(blank=True, null=True)
    shujujieru = models.JSONField(blank=True, null=True)
    baidufuwu = models.JSONField(blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'yonghujiapi'


class Zhuanhuafenxi(models.Model):
    shijian = models.DateTimeField(primary_key=True)
    zhuanhualoudou = models.JSONField(blank=True, null=True)
    lujingzhuanhua = models.JSONField(blank=True, null=True)
    qudaozhuanhua = models.JSONField(blank=True, null=True)

    class Meta:
        managed = False
        db_table = 'zhuanhuafenxi'
